package edu.sctu.nieyu.day20150518;



import java.util.ArrayList;
import java.util.List;

/**
 * Created by user01 on 2015/5/19.
 */
public class TextOne extends TextMore  {
    Student[] studentcode1 = new Student[teacher[1].student.length];

    Student[] studentcode2 = new Student[6];


    public TextOne(Teacher[] teacher) {
        super(teacher);
    }

    public void getTeacherInfo() {
        sotrNumber();
        for (int i = 0; i < teacher.length; i++) {
            System.out.println(teacher[i].number);

        }
    }

    public List< Student> getStudent (int code,List<Student> list){

        List< Student>  list1 = new ArrayList<>();


      //  Student[] studentcode = new Student[student.length];

        for(int i =0;i<list.size();i++){
            if(list.get(i).grade>code){
                list1.add(list.get(i));
            }
        }

        return list1;
    }

    public void getCode() {
        List<Teacher> list2 = pritCoded();
        List<Student> list3 = new ArrayList<>();

    //    for (int i = 0; i <list2.size() ; i++) {
       //     list3 = list2.get(i).;

        }


       // InterfaceStudent interFace = new InterfaceStudent() {

       //     @Override
         //   public Student[] getStudents(List<Teacher> list,int code) {
          //      Student[] studentnumber = getStudent(60, student);

          //      return studentnumber;
            }

      //  };

 //   }
//}

